package p.ithorns.tools.translator.apt.creator;

import com.sun.tools.javac.util.Name;
import p.ithorns.tools.translator.apt.utils.AptUtil;
import p.ithorns.tools.translator.apt.BaseProcessor;

/**
 * BaseMethodCreator
 *
 * @author HtL
 * @date 2025/4/3 15:06
 * @since 1.0.0
 */
public abstract class BaseMethodCreator extends BaseCreator {

    public BaseMethodCreator(BaseProcessor owner) {
        super(owner);
    }

    protected Name makeCamelSignature(Name name, String prefix) {
        return names.fromString(AptUtil.makeCamelName(prefix, name.toString()));
    }

    protected Name getNameFromString(String s) {
        return names.fromString(s);
    }

}